import org.junit.Test;

import java.util.Calendar;

/**
 * @author yyq
 * @create 2021-04-14 0:23
 */

public class teact {
   @Test
  public void sssd(){
        Calendar now = Calendar.getInstance();
        System.out.println("年: " + now.get(Calendar.YEAR));
        System.out.println("月: " + (now.get(Calendar.MONTH) + 1) + "");
        System.out.println("日: " + now.get(Calendar.DAY_OF_MONTH));
    }
}
